package jfood.ontology.meal;
import java.util.ArrayList;

import jade.content.Concept;

public class Ingredient implements Concept {
    /**
	 * 
	 */
	private static final long serialVersionUID = 135286509647866171L;
    private String name;
    
    public Ingredient() {
    	
    }
    
    public Ingredient(String name) {
    	this.name = name;
	}

    public String getName(){
        return name;
    }
    
    public void setName(String name){
        this.name = name;
    }
    
    static public ArrayList<Ingredient> convertNamesToIngredients(final ArrayList<String> ingredientsNames)
    {
    	ArrayList<Ingredient> ingredients = new ArrayList<Ingredient>();
    	
    	for (String str: ingredientsNames)
    	{
    		Ingredient ing = new Ingredient(str);
    		ingredients.add(ing);
    	}
    	
    	return ingredients;
    }
}

